#!/bin/bash
#
#   200k is actually 204k


CMD='bin/get_waveform_ob'
CFG=''
BIN=''

#LINE1=750
#LINE2=751

#LINE1=150
#LINE2=151

#LINE1=1
#LINE2=3

#LINE1=1449
#LINE2=1451

LINE1=0
LINE2=1

#LINE1=10
#LINE2=12

if [ $# == 0 ]
then
	echo "need input argument, '200k', '333k', '636k', or 1m";
else
	if [ $1 == '200k' ]
	then
		# 204KHz
		BIN='../tmp/200k_ob.bin'
		CFG='ccd231_config_200K.ini'
	else
		echo 'NO CORRECT ARG is GIVEN!!'
	fi
fi

${CMD} -c ${CFG} -f ${BIN} -s ${LINE1} -e ${LINE2} -o waveform_$1.txt
